package com.letfox.user.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.user.dao.UserDao;
import com.letfox.user.model.UUser;
import com.letfox.user.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDao userDao;
	
	@Override
	public int save(UUser user) {
		return userDao.insert(user);
	}

	@Override
	public int update(UUser user) {
		return userDao.update(user);
	}

	@Override
	public int deleteById(Long id) {
		return userDao.deleteById(id);
	}

	@Override
	public int deleteByIds(String ids) {
		return userDao.deleteByIds(ids);
	}

	@Override
	public UUser getById(Long id) {
		return userDao.selectById(id);
	}

	@Override
	public List<UUser> getList(UUser user) {
		return userDao.selectList(user);
	}

}
